<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
        <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">

</head>
<body>
<form>

        <table class="table table-hover table-striped table-condensed">
        <tr>
            <td colspan="2"><input type="button" class="btn btn-xs btn-danger" value="商品信息" onclick="window.location.href='look_all'"></td>
            <td colspan="2"> <input type="button" class="btn btn-xs btn-danger" value="个人信息" onclick="window.location.href='manage'"></td>
        </tr>
        <hr>
            {% for i in all %}
                <tr>
                <td><img src="/media/{{ i.image }}" width="100px" height="100px"></td>
                <td>{{ i.name }}</td>
                <td>{{ i.price }}</td>
                <td>{{ i.desc }}</td>
                </tr>
            {% endfor %}
        <tr>
            <td colspan="4">
                <input type="button" class="btn btn-xs btn-danger" onclick="window.location.href='file'" value="添加图片信息">
            </td>
        </tr>
        </table>
</form>
</body>
</html>